//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.yuebanmaoshare.file.ufop.autoconfiguration;

import com.yuebanmaoshare.file.ufop.domain.ThumbImage;
import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(
        prefix = "ufop"
)
public class Properties {
    private String bucketName;
    private String storageType;
    private String localStoragePath;
    private ThumbImage thumbImage = new ThumbImage();

    public String getBucketName() {
        return this.bucketName;
    }

    public String getStorageType() {
        return this.storageType;
    }

    public String getLocalStoragePath() {
        return this.localStoragePath;
    }

    public ThumbImage getThumbImage() {
        return this.thumbImage;
    }


    public void setBucketName(final String bucketName) {
        this.bucketName = bucketName;
    }

    public void setStorageType(final String storageType) {
        this.storageType = storageType;
    }

    public void setLocalStoragePath(final String localStoragePath) {
        this.localStoragePath = localStoragePath;
    }


    public void setThumbImage(final ThumbImage thumbImage) {
        this.thumbImage = thumbImage;
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof Properties)) {
            return false;
        } else {
            Properties other = (Properties)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                Object this$bucketName = this.getBucketName();
                Object other$bucketName = other.getBucketName();
                if (this$bucketName == null) {
                    if (other$bucketName != null) {
                        return false;
                    }
                } else if (!this$bucketName.equals(other$bucketName)) {
                    return false;
                }

                Object this$storageType = this.getStorageType();
                Object other$storageType = other.getStorageType();
                if (this$storageType == null) {
                    if (other$storageType != null) {
                        return false;
                    }
                } else if (!this$storageType.equals(other$storageType)) {
                    return false;
                }

                Object this$localStoragePath = this.getLocalStoragePath();
                Object other$localStoragePath = other.getLocalStoragePath();
                if (this$localStoragePath == null) {
                    if (other$localStoragePath != null) {
                        return false;
                    }
                } else if (!this$localStoragePath.equals(other$localStoragePath)) {
                    return false;
                }


                Object this$thumbImage = this.getThumbImage();
                Object other$thumbImage = other.getThumbImage();
                if (this$thumbImage == null) {
                    if (other$thumbImage != null) {
                        return false;
                    }
                } else if (!this$thumbImage.equals(other$thumbImage)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof Properties;
    }

    public int hashCode() {
        int PRIME = 59;
        int result = 1;
        Object $bucketName = this.getBucketName();
        result = result * 59 + ($bucketName == null ? 43 : $bucketName.hashCode());
        Object $storageType = this.getStorageType();
        result = result * 59 + ($storageType == null ? 43 : $storageType.hashCode());
        Object $localStoragePath = this.getLocalStoragePath();
        result = result * 59 + ($localStoragePath == null ? 43 : $localStoragePath.hashCode());
        Object $thumbImage = this.getThumbImage();
        result = result * 59 + ($thumbImage == null ? 43 : $thumbImage.hashCode());
        return result;
    }

    public String toString() {
        return "UFOPProperties(bucketName=" + this.getBucketName() + ", storageType=" + this.getStorageType() + ", localStoragePath=" + this.getLocalStoragePath() + ", thumbImage=" + this.getThumbImage() + ")";
    }
}
